package mdm.led.entity;


import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import mdm.led.common.AbstractBean;
import mdm.led.util.DateUtil;

public class SysBackup extends AbstractBean {
    private Integer cBackupId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date cBackupTime;

    private Integer cUserId;

    private String cBackupFile;

    private String remark;

    private Short state;

    private String startDate;

    private String endDate;
    
    private String cBackupTimes;
    

    public String getcBackupTimes() {
        return cBackupTimes;
    }

    public void setcBackupTimes(String cBackupTimes) {
        this.cBackupTimes = cBackupTimes;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }


    public Integer getcBackupId() {
        return cBackupId;
    }

    public void setcBackupId(Integer cBackupId) {
        this.cBackupId = cBackupId;
    }

    public Date getcBackupTime() {
        return cBackupTime;
    }

    public void setcBackupTime(Date cBackupTime) {
        this.cBackupTime = cBackupTime;
        try {
            this.cBackupTimes = DateUtil.formatDateTime(cBackupTime);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public Integer getcUserId() {
        return cUserId;
    }

    public void setcUserId(Integer cUserId) {
        this.cUserId = cUserId;
    }

    public String getcBackupFile() {
        return cBackupFile;
    }

    public void setcBackupFile(String cBackupFile) {
        this.cBackupFile = cBackupFile == null ? null : cBackupFile.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Short getState() {
        return state;
    }

    public void setState(Short state) {
        this.state = state;
    }
}